import request from "@/request/api";

// 查询图档资料列表
export const queryDocumentList = (data) => {
    return request({
        url: '/eam-service-device/document/queryList',
        method: 'get',
        params: data
    })
}

// 上传图档资料列表
export const uploadDocumentApi = (data) => {
    return request({
        url: '/eam-service-device/document/saveOrUpdateEquipmentDocument',
        method: 'post',
        data
    })
}

// 删除图档附件
export const deleteDocumentApi = (ids) => {
    return request({
        url: '/eam-service-device/document/delete',
        method: 'get',
        params: {
            ids
        }
    })
}